#/bin/bash
stream_package=(subversion libjpeg8-dev imagemagick libv4l-dev cmake git)
apt install ${stream_package[@]} -y
git clone https://github.com/jacksonliam/mjpg-streamer.git
cd mjpg-streamer/mjpg-streamer-experimental
make all
make DESTDIR=/home/pi/stream/ install
#./mjpg_streamer -i "../lib/mjpg-streamer/input_uvc.so -d /dev/video1 -n -y -f 25 -r 640x480" -o "../lib/mjpg-streamer/output_http.so -n -c "wp:1152679377" -w /home/wp/www"
